package com.sz.mes.vo;

import com.diboot.core.binding.annotation.*;
import com.sz.mes.entity.Picklist;
import com.sz.mes.entity.Worksheet;
import com.diboot.iam.entity.IamUser;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 领料 DetailVO定义
* @author hem
* @version 1.0
* @date 2023-06-05
 * Copyright © szhs
*/
@Getter @Setter @Accessors(chain = true)
public class PicklistDetailVO extends Picklist  {
    private static final long serialVersionUID = -1932335395466741829L;

    /**
    * 关联字段 系统用户.真实姓名：IamUser.realname 
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.pick_user_id=id")
    private String iamUserRealname;

    /**
    * 关联对象 系统用户：IamUser
    */ 
    @BindEntity(entity = IamUser.class, condition = "this.pick_user_id=id")
    private IamUser iamUser;
		
    /**
    * 关联字段 系统用户.真实姓名：IamUser.realname 
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by=id")
    private String createByName;

    /**
    * 关联字段 系统用户.真实姓名：IamUser.realname 
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by=id")
    private String updateByName;

    private String outboundNum;

    private List<PlanDemandQuantityDetailVO> planDemandQuantityDetailVOS;

}